const http = require("http");
const serve = http.createServer((req, res) => {
  res.setHeader("Access-Control-Allow-Origin", "*");
  const arr = [{ name: "Jack", age: 20 }];
  res.end(JSON.stringify(arr));
});
serve.listen("8888", () => {
  console.log("8888服务器已启动");
});
